package com.venue.response;

import com.venue.entity.ErrorMapData;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: wangwenjun
 * Email: wangwj@sinoif.com
 * Date: 2018/7/24 14:24
 * 功能描述
 */
public class Response<T> implements Serializable {

    private String resultCode;

    private ErrorMapData error;

    private String method;

    private T result;

    public Response(String resultCode, ErrorMapData error, String method, T result) {
        this.resultCode = resultCode;
        this.error = error;
        this.method = method;
        this.result = result;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public ErrorMapData getError() {
        return error;
    }

    public void setError(ErrorMapData error) {
        this.error = error;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
